#ifndef _LOS_ADAPTER_H
#define _LOS_ADAPTER_H

#include <stdlib.h>
#include <string.h>

#define LOS_NO_WAIT 0
#define OS_INT_ACTIVE 0
typedef int errno_t;
#define EOK 0
#define SECUREC_MEM_MAX_LEN 0x7fffffffUL
#define g_losTaskLock 0
#define LOS_IntLock()  0
#define LOS_IntRestore(intSave) ((void)intSave)
#define memset_s(a,b,c,d) memset(a,c,d)
#define LOS_MemFree(a,b) (free(b),0)
#define LOS_MemAlloc(a,b) malloc(b)
#define LOS_MemboxAlloc(a) malloc(100)
#define LOS_MemboxFree(a,b) (free(b),0)
#define LOS_Schedule() 
#define OsSchedTaskWait(a,b)
#define memcpy_s(a,b,c,d) (memcpy(a,c,d),0)
#define OsalMemCalloc(a) malloc(a)
#define OsalMemFree(a) free(a)
#define OsalMemAlloc(a) malloc(a)
#define STATIC static
#define INLINE inline
#define CTZ(value)                                  (__builtin_ctz(value))
#endif
